package com.llh.bean;

import java.io.Serializable;
import java.util.Date;

public class MiddleData implements Serializable {
    private Integer s_no;

    private String s_code;

    private Date open_day;

    private Date start_day;

    private Date end_day;

    private Integer total;

    private String exchange;

    private Integer period_no;

    private Date period;

    private Date period_preyear;

    private static final long serialVersionUID = 1L;

    public Integer getS_no() {
        return s_no;
    }

    public void setS_no(Integer s_no) {
        this.s_no = s_no;
    }

    public String getS_code() {
        return s_code;
    }

    public void setS_code(String s_code) {
        this.s_code = s_code == null ? null : s_code.trim();
    }

    public Date getOpen_day() {
        return open_day;
    }

    public void setOpen_day(Date open_day) {
        this.open_day = open_day;
    }

    public Date getStart_day() {
        return start_day;
    }

    public void setStart_day(Date start_day) {
        this.start_day = start_day;
    }

    public Date getEnd_day() {
        return end_day;
    }

    public void setEnd_day(Date end_day) {
        this.end_day = end_day;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange == null ? null : exchange.trim();
    }

    public Integer getPeriod_no() {
        return period_no;
    }

    public void setPeriod_no(Integer period_no) {
        this.period_no = period_no;
    }

    public Date getPeriod() {
        return period;
    }

    public void setPeriod(Date period) {
        this.period = period;
    }

    public Date getPeriod_preyear() {
        return period_preyear;
    }

    public void setPeriod_preyear(Date period_preyear) {
        this.period_preyear = period_preyear;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MiddleData other = (MiddleData) that;
        return (this.getS_no() == null ? other.getS_no() == null : this.getS_no().equals(other.getS_no()))
            && (this.getS_code() == null ? other.getS_code() == null : this.getS_code().equals(other.getS_code()))
            && (this.getOpen_day() == null ? other.getOpen_day() == null : this.getOpen_day().equals(other.getOpen_day()))
            && (this.getStart_day() == null ? other.getStart_day() == null : this.getStart_day().equals(other.getStart_day()))
            && (this.getEnd_day() == null ? other.getEnd_day() == null : this.getEnd_day().equals(other.getEnd_day()))
            && (this.getTotal() == null ? other.getTotal() == null : this.getTotal().equals(other.getTotal()))
            && (this.getExchange() == null ? other.getExchange() == null : this.getExchange().equals(other.getExchange()))
            && (this.getPeriod_no() == null ? other.getPeriod_no() == null : this.getPeriod_no().equals(other.getPeriod_no()))
            && (this.getPeriod() == null ? other.getPeriod() == null : this.getPeriod().equals(other.getPeriod()))
            && (this.getPeriod_preyear() == null ? other.getPeriod_preyear() == null : this.getPeriod_preyear().equals(other.getPeriod_preyear()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getS_no() == null) ? 0 : getS_no().hashCode());
        result = prime * result + ((getS_code() == null) ? 0 : getS_code().hashCode());
        result = prime * result + ((getOpen_day() == null) ? 0 : getOpen_day().hashCode());
        result = prime * result + ((getStart_day() == null) ? 0 : getStart_day().hashCode());
        result = prime * result + ((getEnd_day() == null) ? 0 : getEnd_day().hashCode());
        result = prime * result + ((getTotal() == null) ? 0 : getTotal().hashCode());
        result = prime * result + ((getExchange() == null) ? 0 : getExchange().hashCode());
        result = prime * result + ((getPeriod_no() == null) ? 0 : getPeriod_no().hashCode());
        result = prime * result + ((getPeriod() == null) ? 0 : getPeriod().hashCode());
        result = prime * result + ((getPeriod_preyear() == null) ? 0 : getPeriod_preyear().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", s_no=").append(s_no);
        sb.append(", s_code=").append(s_code);
        sb.append(", open_day=").append(open_day);
        sb.append(", start_day=").append(start_day);
        sb.append(", end_day=").append(end_day);
        sb.append(", total=").append(total);
        sb.append(", exchange=").append(exchange);
        sb.append(", period_no=").append(period_no);
        sb.append(", period=").append(period);
        sb.append(", period_preyear=").append(period_preyear);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}